package com.lw.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lw.edu.entity.Course;
import com.lw.edu.entity.frontvo.CourseQueryVo;
import com.lw.edu.entity.frontvo.CourseWebVo;
import com.lw.edu.entity.vo.CourseInfoVo;
import com.lw.edu.entity.vo.CoursePublishVo;
import com.lw.edu.entity.vo.CourseQuery;

import java.util.List;

public interface CourseService extends IService<Course> {
    String addCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getCoursePublish(String courseId);

    boolean deleteCourse(String courseId);

    Page<Course> pageList(Page page, CourseQuery courseQuery);

    Page<Course> getCourseList(Page<com.lw.edu.entity.Course> coursePage, CourseQueryVo courseQueryVo);

    CourseWebVo getBaseCourseInfo(String id);
}
